#include "StdAfx.h"
#include "Line.h"

CLine::CLine(void)
{
	selected = false;
}

CLine::~CLine(void)
{
}

void CLine::Draw()
{
	//Change color if the line is selected.
	if (selected == true)
		glColor3fv(blue);
	else 
		glColor3fv(black);
	
	glBegin(GL_LINES);
		glVertex2f(m_Begin.getX(), m_Begin.getY());
		glVertex2f(m_End.getX(), m_End.getY());
	glEnd();
}
